package br.com.mmm.javacenter.framework.filters;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;

import br.com.mmm.javacenter.framework.configuration.Configuration;

public class IocListener implements ServletContextListener,ServletRequestListener{

	public void contextDestroyed(ServletContextEvent arg0) {
		
	}

	public void contextInitialized(ServletContextEvent arg0) {
		//IocController.loadAll();
		Configuration configuration = new Configuration(arg0.getServletContext());
		configuration.discoveryClasses();
		//HibernateUtil.montaBanco();
	}

	public void requestDestroyed(ServletRequestEvent arg0) {
		
		
	}

	public void requestInitialized(ServletRequestEvent arg0) {
		//IocController.loadAll();
	}

}
